const App = getApp()
Page({
  data: {
    url:''
  },
  onLoad: function (options) {
    // wx.hideShareMenu({
    //   menus: ['shareAppMessage', 'shareTimeline']
    // })
    let slet = this;
    wx.request({
      url: getApp().data.apiUrl + '/GetInformation.ashx',
      data: {
      },
      method: 'GET',
      header: {
        'content-type': 'application/json'
      },
      success: function (res) {
        var resdata = JSON.parse(decodeURIComponent(JSON.stringify(res.data)));
        console.log('进来:',resdata)
        slet.setData({
          url: resdata['imgdata'][1]['url']
        })
      }
    })
    
  },
})